home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / chrome_100_percent.pak / Unnamed File 000039.txt < prev    next >
Text File  |  2013-04-03  |  621b  |  18 lines

  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4.  
  5. // Custom bindings for the pageAction API.
  6.  
  7. var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
  8. var setIcon = require('setIcon').setIcon;
  9.  
  10. chromeHidden.registerCustomHook('pageAction', function(bindingsAPI) {
  11.   var apiFunctions = bindingsAPI.apiFunctions;
  12.  
  13.   apiFunctions.setHandleRequest('setIcon', function(details, callback) {
  14.     setIcon(details, callback, this.name, this.definition.parameters,
  15.         'page action');
  16.   });
  17. });
  18.